Using Extensions
Using extensions may drastically reduce your When event's performance. Use when it's really needed.
Extensions to add onto the library and assist with utilizing When.
local When = game:GetService("ReplicatedStorage").When
local when = require(when)
when.extend(
when.Extensions["Interoperable"] -- Example of loading Interoperable
)
Extensions of When should be loaded in the main script and waited for in the other script
Associated Functions
.wait()
when.wait(
id? : string || number
)
Waits for a certain extension to be loaded.
💡 Tips: Depending on the extensions, the latest extension to be loaded in the main script but waited for in the secondary script can compensate for the earlier extensions.